<!--
 * @Description: DText 文本
 * @Author: zhangwei
 * @Date: 2023-02-02 16:25:48
 * @LastEditTime: 2023-02-20 17:59:24
 * @LastEditors: zhangwei
-->
<template>
  <div :style="getWidgetStyle">{{ mdata.attrs.value }}</div>
</template>

<script lang="ts" setup name="DText">
import type { PropType } from "vue";
import { useWidget } from "@/hooks/lowcode/useWidget";
import type { TypeWidget } from "@/types/TypeDesign";

var props = defineProps({
  mdata: {
    type: Object as PropType<TypeWidget>,
    default: () => {},
  },
});

let { getWidgetStyle } = useWidget(props.mdata);
</script>

<style scoped lang="scss"></style>
